package com.karry.yl.service.baseinfo;


import com.karry.commons.base.SuperService;
import com.karry.yl.domain.baseinfo.Employee;
import com.karry.yl.domain.baseinfo.EmployeeCertificate;
import com.karry.yl.domain.personnel.Train;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Administrator
 */
public interface EmployeeService extends SuperService<Employee> {


    /**
     * 跟新从业人员信息，证书信息，培训信息
     * @param data
     * @param orgId
     * @throws Exception
     */
    void updateEmployeeData(String data, Long orgId) throws Exception;

    /**
     * 添加从业人员信息，证书信息，培训信息
     *
     * @param data
     * @param orgId
     * @throws Exception
     */
    void saveEmployeeData(String data, Long orgId) throws Exception;

    /**
     * 给从业人员设置账号
     * @param data
     * @param orgId
     * @throws Exception
     */
    void saveUser(String data, Long orgId)  throws Exception;

    /**
     * 离职
     * @param id
     */
    void leaveOffice(Long id);
}
